def mymap(func, iterables, /):
    for i in iterables:
        yield func(i)

m = mymap(str,range(5))
for i in m:
    print(i)

n = mymap(lambda x: x if isinstance(x,int) else int(x, 16),['a','b'])
for i in n:
    print(i)
